package com.zgg.files.dao;

import com.zgg.files.bean.OSSFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OSSFileMapper {

    OSSFile findOSSFileById(@Param("tablename") String tablename, @Param("id") String id);

    OSSFile findOSSFileByPath(@Param("tablename") String tablename, @Param("ossFilePath") String ossFilePath);

    OSSFile findOSSFileByCode(@Param("tablename") String tablename, @Param("pathcode") String pathcode);

    int updateOSSFile(@Param("tablename") String tablename, @Param("ossFile") OSSFile ossFile);

    int saveOssFile(@Param("tablename") String tablename, @Param("ossFile") OSSFile ossFile);

    int deleteOssFileById(@Param("tablename") String tablename, @Param("id") String id);

    List<OSSFile> getOSSFile(@Param("tablename") String tablename, @Param("fileIds") List<String> fileIds);


    int isTableExist(@Param("tablename") String tablename);

    public void createTable(@Param(value = "tablename") String tablename);


}
